package com.erp.common.request;

import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class BasePageRequest implements Serializable {
    private static final long serialVersionUID = -4458984825046153299L;
    /**
     * 每页显示条数
     */
    @NotNull(message = "pageSize not null")
    private Long pageSize;

    /**
     * 当前页，从1开始计数
     */
    @NotNull(message = "pageNum not null")
    private Long pageNum;

    /**
     * 服务调用唯一键
     */
    private Long sequence;

    /**
     * 查询字段
     */
    private String[] columns;

}
